# java_build

FROM openjdk:8

EXPOSE 8080

ADD target/*.jar project.jar
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","project.jar"]
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone